package com.zhuidian.mothernote.activity;

import android.annotation.SuppressLint;
import android.view.View;

import androidx.recyclerview.widget.LinearLayoutManager;
import androidx.recyclerview.widget.RecyclerView;

import com.base.decoration.LinearLayoutDecoration;
import com.base.listener.ItemClickListener;
import com.base.presenter.BasePresenter;
import com.zhuidian.mothernote.R;
import com.zhuidian.mothernote.adapter.InviteAnswerAdapter;
import com.zhuidian.mothernote.global.BaseActivity;

public class InviteAnswerActivity extends BaseActivity {

    private InviteAnswerAdapter adapter;

    @Override
    protected int inflateMainLayoutId() {
        return R.layout.activity_receive_like;
    }

    @SuppressLint("WrongConstant")
    @Override
    protected void initView(View view) {
        setTopTitle("回答评论");
        RecyclerView recyclerView = (RecyclerView) view.findViewById(R.id.recyclerView);
        recyclerView.setHasFixedSize(true);
        LinearLayoutManager linearLayoutManager = new LinearLayoutManager(context);
        linearLayoutManager.setOrientation(LinearLayoutManager.VERTICAL);
        recyclerView.setLayoutManager(linearLayoutManager);
        recyclerView.addItemDecoration(new LinearLayoutDecoration(context));
        adapter = new InviteAnswerAdapter(context);
        adapter.setOnClickListener(this);
        adapter.setItemClickListener(new ItemClickListener() {
            @Override
            public void onItemClick(View view, int position) {

            }
        });
        recyclerView.setAdapter(adapter);
    }

    @Override
    protected void setListener() {

    }

    @Override
    protected BasePresenter getPresenter() {
        return null;
    }
}
